package com.probox.common.entity.domain.platfom;

import java.util.ArrayList;
import java.util.Date;
import java.io.Serializable;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import com.baomidou.mybatisplus.annotation.*;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.probox.common.core.annotation.Excel;

/**
 * 平台_模板链接配置对象 platform_template_url
 *
 *
 * @date 2021-06-15
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("platform_template_url")
public class PlatformTemplateUrl implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    //默认主键自增
    @TableId(value = "URL_UID", type = IdType.AUTO)
    private Long urlUid;
    /**
     * 所属那个类型下
     */
    @Excel(name = "所属那个类型下")
    private Long urlPuid;
    /**
     * 平台uid
     */
    @Excel(name = "平台uid")
    private Long platformUid;
    /**
     * (type类型/page页面)
     */
    @Excel(name = "(type类型/page页面)")
    private String urlType;
    /**
     * 链接内容
     */
    @Excel(name = "链接内容")
    private String urlValue;
    /**
     * 状态(1有效/0无效/删除-1)
     */
    @Excel(name = "状态(1有效/0无效/删除-1)")
    private String dataStatus;
    /**
     * 排序
     */
    @Excel(name = "排序")
    private Long dataPriority;
    /**
     * 创建人ID
     */
    @Excel(name = "创建人ID")
    private Long createUid;
    /**
     * 创建人名称
     */
    @Excel(name = "创建人名称")
    private String createName;
    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    /**
     * 更新人ID
     */
    @Excel(name = "更新人ID")
    private Long updateUid;
    /**
     * 更新人名称
     */
    @Excel(name = "更新人名称")
    private String updateName;
    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    public String urlAddress;

    private String jumpType;

    private String jumpSign;

    @TableField(exist = false)
    private List<PlatformTemplateUrl> children = new ArrayList<PlatformTemplateUrl>();

}
